	Ext.onReady(function(){
			//windowsts.show();
	});
	
	var  danji = new Ext.grid.RowSelectionModel({
		singleSelect:true
	});
	
	var alarmgrid = new Ext.grid.GridPanel({})
	alarmgrid.addListener('rowclick',rowclickFn);
	
	function rowclickFn(grid,rowindex,e){
		grid.getSelectionMode().each(function(rec){
			alert(rec.get(rownumberer));
		});
	}
	
	var gridsc=Ext.create('Ext.grid.Panel',{
		columns:[
			{header:'单据号码',xtype:'rownumberer',dataIndex:'SerNo',width:50,sortable:false},
			{header:'单据日期',dataIndex:'ProdID',width:100,},
		],
		height:260,
		width:1000,
		autoScroll:false,
		listeners:{
			rowdblclick:function(grid,row){alert("1232");},
			//双击
			rowclick:function(grid,row){alert("55666");}
		}
	});
	
	//窗体大小
	var windowsts=new Ext.Window({
		width:400,
		height:350,
		title:"转销售报价单",
		closable:true,
		resizable:false, //设置是否可以改变大小
		draggable:true,
		anchor: '100%',
		items:[gridsc],
	});